package com.zhongli.devplatform.dto.user;

import com.zhongli.devplatform.enums.SexType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apiguardian.api.API;
import org.springframework.util.StringUtils;

/**
 * @author wy
 * @since 2020/7/30
 */
@Data
@ApiModel
public class UserInfoDTO {

    @ApiModelProperty(name = "headImgUrl",value = "头像")
    private String headImgUrl;
    @ApiModelProperty(name = "nickName",value = "昵称")
    private String nickName;
    @ApiModelProperty(name = "sex",value = "性别")
    private SexType sex;
    @ApiModelProperty(name = "introduce",value = "个人简介")
    private String introduce;
    @ApiModelProperty(name = "folder",value = "文件夹名")
    private String folder;


    public String getHeadImgUrl() {
        return StringUtils.hasLength(headImgUrl)?headImgUrl:null;
    }

}
